package cn.exrick.xboot.core.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum UserLevelEnum {

    /**
     * 监管部门
     */
    PROVINCE_DEPARTMENT(1,"省级部门"),

    /**
     * 市级部门
     */
    CITY_DEPARTMENT(2, "市级部门"),

    /**
     * 区县部门
     */
    COUNTRY_DEPARTMENT(3, "区县部门"),

    /**
     * 乡镇部门
     */
    TOWNS_DEPARTMENT(4,"乡镇部门");

    UserLevelEnum(int code, String value) {
        this.code = code;
        this.value = value;
    }

    @JsonValue
    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public int getCode() {
        return code;
    }

    @EnumValue
    private final  int code;
    private  String value;


}
